import 'package:dio/dio.dart';
const leading='privateRoom';

Future<Response<dynamic>> getAllPR({required Dio dio}) async {
  Response<dynamic> response = await dio.post('/$leading/all');
  return response;
}


Future<Response<dynamic>> addPR({
  required Map<String, String> privateRoom,
  required Dio dio,
}) async {
  Response<dynamic> response = await dio.post('/$leading/add', data: privateRoom);
  return response;
}


Future<Response<dynamic>> updatePR({
  required Map<String, dynamic> privateRoom,
  required Dio dio,
}) async {
  Response<dynamic> response =
  await dio.post('/$leading/update', data: privateRoom);
  return response;
}
